package com.k.config;


/**
 * @program: SpringSecote01
 * @ClassName RedisConfig
 * @description:
 * @author: xiaoJie
 * @create: 2024-09-11 19:49
 * @Version 1.0
 */
//@Configuration
//public class RedisConfig {
//    @Bean
//    public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory factory){
//        RedisTemplate<String, Object> template = new RedisTemplate<>();
//        template.setKeySerializer(new StringRedisSerializer());
//        template.setValueSerializer(new GenericJackson2JsonRedisSerializer());
//        template.setConnectionFactory(factory);
//        template.afterPropertiesSet();
//        return template;
//    };
//}
